// pages/alpha/index.js
var app = getApp();
var $ = require("../../utils/httpHelper.js");
var defaultData = [
]
Page({
  data:{
    list: defaultData,
    target:"A"
  },
  lisetentargettap( event ){
    var key = event.currentTarget.dataset.key
      this.setData({
        target: key
      })
  },
  onLoad:function(options){
    var that=this;
    $.httpPost("province_list", { rd_session: app.globalData.userInfo.rd_session }, (data, err) => {
      this.setData({
        list: data.data.lists
      })
    })
  },
  sele_school:function(e){
    console.log(e)
    var school_id = e.currentTarget.dataset.schoolid
    var school_name = e.currentTarget.dataset.schoolname
    wx.redirectTo({
      url: `/pages/yeni/fenbu?id=${school_id}&name=${school_name}`,
    })
  }
})